package com.ustb.hospital.service;

import com.ustb.hospital.entity.admins;
import com.ustb.hospital.mapper.AdminsMapper;
import com.ustb.hospital.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

import java.io.IOException;

public class AdminsServiceImpl {
    public admins queryByUsername(String username) throws IOException {
        SqlSession sqlSession = MybatisUtil.getSqlSession();
        AdminsMapper mapper = sqlSession.getMapper(AdminsMapper.class);
        return mapper.selectByUsername(username);
    }
}
